package com.api.shopapi.mapper;

import com.api.shopapi.entity.ElderlyMonthlyReport;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface ElderlyMonthlyReportMapper {

    @Insert("insert into  elderly_monthly_report " +
            "(" +
            "ElderlyMonthlyReportCode, " +
            "ElderlyCode, " +
            "Months" +
            ") " +
            "VALUES " +
            "(" +
            "#{elderlyMonthlyReport.ElderlyMonthlyReport} ," +
            "#{elderlyMonthlyReport.ElderlyCode} ," +
            "#{elderlyMonthlyReport.Months} " +
            ")  ")
    int insert(@Param("elderlyMonthlyReport") ElderlyMonthlyReport elderlyMonthlyReport);
}
